package ace.module.stock.core.impl.manager;

import ace.module.common.core.impl.manager.EntityOfAppManager;
import ace.module.stock.core.impl.dao.entity.WmsStockBatchRecord;
import ace.module.stock.api.model.dto.WmsStockBatchRecordDto;

/**
* 库存变更批次号记录,保存90天 spring data jdbc querydsl rsql manager.
*
* @author Caspar
*/
public interface WmsStockBatchRecordManager extends EntityOfAppManager<WmsStockBatchRecord, Long, WmsStockBatchRecordDto> {

  WmsStockBatchRecord build(Long wmsAppId, String batchSn);

  void checkNotExistBatchSnByWmsApIdAndBatchSn(Long wmsAppId, String batchSn);

  String getNewSn();

  String getDefaultSnOrNewSn(String defaultBatchSn);
}